// ==========================================================================
// GFast自动生成controller操作代码。
// 生成日期：2024-04-24 18:08:26
// 生成路径: internal/app/business/controller/books.go
// 生成人：周志雄
// desc:场次座位预定
// company:云南奇讯科技有限公司
// ==========================================================================

package controller

import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/service"
	systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
)

type booksController struct {
	systemController.BaseController
}

var Books = new(booksController)

//// List 列表
//func (c *booksController) List(ctx context.Context, req *business.BooksSearchReq) (res *business.BooksSearchRes, err error) {
//	res, err = service.Books().List(ctx, req)
//	return
//}
//
//// Get 获取场次座位预定
//func (c *booksController) Get(ctx context.Context, req *business.BooksGetReq) (res *business.BooksGetRes, err error) {
//	res = new(business.BooksGetRes)
//	res.BooksInfoRes, err = service.Books().GetById(ctx, req.Id)
//	return
//}
//
//// Add 添加场次座位预定
//func (c *booksController) Add(ctx context.Context, req *business.BooksAddReq) (res *business.BooksAddRes, err error) {
//	err = service.Books().Add(ctx, req)
//	return
//}
//
//// Edit 修改场次座位预定
//func (c *booksController) Edit(ctx context.Context, req *business.BooksEditReq) (res *business.BooksEditRes, err error) {
//	err = service.Books().Edit(ctx, req)
//	return
//}
//
//// Delete 删除场次座位预定
//func (c *booksController) Delete(ctx context.Context, req *business.BooksDeleteReq) (res *business.BooksDeleteRes, err error) {
//	err = service.Books().Delete(ctx, req.Ids)
//	return
//}

// 设置座位
func (c *booksController) ChooseSeats(ctx context.Context, req *business.ChooseSeatsReq) (res *business.ChooseSeatsRes, err error) {
	err = service.Books().Choose(ctx, req)
	return
}
